package com.kaifamiao.N0720;

import java.util.Random;

public class Node {
    public static void main(String[] args) {
        double [] num = {5,4,6,2,1,8,3,2,8,9,3,5};
        //double num = Math.random();
        for(int i = 0;i < num.length-1;i++){
            for(int x = 0;x < num.length-1-i;x++){
                if(num[x] < num[x+1]){
                    double t = num[x];
                    num[x] = num[x+1];
                    num[x+1] = t;
                }
            }
        }
        for(int y = 0;y < num.length;y++){
            System.out.println(num[y]);
        }
    }
}
